package com.dingding.commonservice.facade.distance;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.commonservice.core.distance.service.ICalculateDistanceService;
import com.dingding.facade.commonservice.common.dto.distance.ReqMileageCostDTO;
import com.dingding.facade.commonservice.common.dto.distance.ResMileageCostDTO;
import com.dingding.facade.commonservice.facade.distance.ICalculateDistanceFacade;

/**
 * 
 * @ClassName: CalculateDistanceFacadeImpl 
 * @Description: 计算距离价格
 * @author YHQ
 * @date 2016年12月2日 上午11:40:15
 * @since V2.5.6
 * 
 */
@Component("calculateDistanceFacade")
public class CalculateDistanceFacadeImpl implements ICalculateDistanceFacade{

	@Resource(name = "calculateDistanceService")
	private ICalculateDistanceService calculateDistanceService;

	/**
	 * 
	 * @Title: calculationMileageCost 
	 * @Description: 计算里程费用 (专车、出租车使用)
	 * @param reqMileageCostDTO 
	 * @author YHQ 
	 * @since V2.5.7
	 * @return ResMileageCostDTO    返回类型
	 * 
	 */
	@Override
	public ResMileageCostDTO calculationMileageCost(ReqMileageCostDTO reqMileageCostDTO) {
		
		return calculateDistanceService.calculationMileageCost(reqMileageCostDTO);
	}
	

}
